home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / stevie.arc / REGEXP.ARC / REGERROR.C < prev    next >
Text File  |  1990-01-10  |  359b  |  20 lines

  1. #include <stdio.h>
  2.  
  3. void
  4. regerror(s)
  5. char *s;
  6. {
  7. #ifdef ERRAVAIL
  8.     error("regexp: %s", s);
  9. #else
  10.     fprintf(stderr, "regexp(3): %s\n", s);
  11.     exit(1);
  12. /*
  13.     note:    if the program using regexp(3) wants to handle the regexp
  14.         errors, comment out the above and use this
  15. */        
  16.     return;      /* let using program handle errors */
  17. #endif
  18.     /* NOTREACHED */
  19. }
  20.